package com.ftg.selflearn.util;

import lombok.Data;

/**
 * @author Guo
 * @date 2022/4/27
 */
@Data
public class ResEntity {

    private int code;

    private String msg;

    private Object data;

    public ResEntity(){
        this.code = 0;
        this.msg = "success";
        this.data = null;
    }

    public ResEntity(int code,String msg){
        this.code = code;
        this.msg = msg;
        this.data = null;
    }

    public ResEntity(String msg){
        this.code = 0;
        this.msg = msg;
        this.data = null;
    }

    public ResEntity(int code,String msg,Object obj){
        this.code = 0;
        this.msg = msg;
        this.data = obj;
    }

}